import request from '@/utils/request'

export function getCentralBankList(query) {
  return request({
    url: '/knowledge/central-bank/getList',
    method: 'post',
    data: query
  })
}


export function getCentralBankUsableList(query) {
  return request({
    url: '/knowledge/central-bank/getUsableList',
    method: 'post',
    data: query
  })
}
export function getCentralBankDetail(id) {
  return request({
    url: '/knowledge/central-bank/getDetail',
    method: 'post',
    data: id
  })
}
export function changeStatusByCentralBankID(id) {
  return request({
    url: '/knowledge/central-bank/change-status',
    method: 'post',
    data: id
  })
}

export function saveCentralBank(formdata) {
  return request({
    url: '/knowledge/central-bank/save',
    method: 'post',
    data: formdata
  })
}

export function deleteCentralBankByID(id) {
  return request({
    url: '/knowledge/central-bank/delete',
    method: 'post',
    data: id
  })
}
export function removeCentralBankByID(id) {
  return request({
    url: '/knowledge/central-bank/remove',
    method: 'post',
    data: id
  })
}

export function getCentralBanksAvabile() {
  return request({
    url: '/knowledge/central-bank/getAvailable',
    method: 'post'
  })
}
